<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<body>
	<div th:fragment="header">
		<a th:href="@{/}"> <img th:src="@{/resources/images/logo.png}" border="0" /></a> 
		<br />
	    <span sec:authorize="isAnonymous()">
            <a th:href="@{/login}">login</a>
        </span>
        <span sec:authorize="isAuthenticated()">
			<a th:href="@{/logout}">Logout</a>
        </span>
	</div>

	<div>Content goes here</div>

	<div th:fragment="copy">
	   <p>Copyright &copy; Tavish</p>
	</div>
</body>
</html>